/* eslint-disable no-unused-vars */
'use strict'

const os = require('os')
const path = require('path')
/**
 * 本地环境
 */

module.exports = app => {
  const config = {}

  config.sequelize = {
    username: 'root',
    password: '41142531@QQ',
    database: 'ws_admin',
    host: 'cd-cdb-3hgipptu.sql.tencentcdb.com',
    port: 63942,
    dialect: 'mysql'
  }

  // 自定义日志路径
  // https://eggjs.org/zh-cn/core/logger.html
  config.logger = {
    dir: path.join(__dirname, '../logs/dev/app'),
    outputJSON: true,
    appLogName: `${app.name}-web.log`,
    coreLogName: 'egg-web.log',
    agentLogName: 'egg-agent.log',
    errorLogName: 'common-error.log'
  }

  return config
}
